﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using LeoK.Annotations;

namespace LeoK.Common
{
    public class EntityBase : INotifyPropertyChanged
    {
        public EntityBase()
        {
            
        }

        public event PropertyChangedEventHandler PropertyChanged;

        [NotifyPropertyChangedInvocator]
        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }

    public class EBAttribute : Attribute
    {
        public bool IsReadOnly { get; set; }
        public bool AllowFilter { get; set; }
        public Type DataConverter { get; set; }
    }
}
